#!/bin/bash
# Comments
# Version check
# Sestatus
echo -e "SELinux status is `getenforce`."
# Enable SELinux
# select service
# select file
confile=smb.conf
serv=samba
# read config
#awk '!/^ *$/ && !/^ *#/ && !/^ *;/' $confile 
#sed "/^\s*;/d;s/\s*;[^\"']*$//;/^\s*#/d;s/\s*#[^\"']*$//" smb.conf
#sed -e '/^\s*#/d' -e '/^\;/d' -e '/^$/d' -e '/\#$/d'
#cat smb.conf | sed -e  '/^\s*$/d' -e '/^\s*#/d' -e '/^\;/d'
sed -e  '/^\s*$/d;/^\s*#/d;/^\s*;/d' $confile > $serv.conf
cat $serv.conf | awk -F"path =" '{print $2}' | sed -e  's/\s//;/^\s*$/d'
